package com.horizon.wxapp.controller;

import com.horizon.wxapp.entity.Recommend;
import com.horizon.wxapp.service.RecommendsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("recommends")
public class RecommendsController {

    @Autowired
    private RecommendsService recommendsService;

    @RequestMapping
    public List<Recommend> getRecommends() {
        return recommendsService.getRecommends();
    }
}
